package com.five.wechat.serviceImp;

import com.five.common.been.ReturnTextEntity;
import com.five.common.util.BaseUtil;
import com.five.common.util.XmlUtil;
import com.five.wechat.service.ShortvideoService;

import java.util.Map;

/**
 * @ClassName ShortvideoServiceImp
 * @Author wuxuan
 * @Date 2019/1/19 14:12
 * @Version 1.0
 * @Description
 **/
public class ShortvideoServiceImp implements ShortvideoService {
    @Override
    public String handleAllShortvideo(Map<String,String> xml) {
        String toUserName = xml.get("ToUserName");
        String fromUserName = xml.get("FromUserName");

        ReturnTextEntity entity=new ReturnTextEntity();
        entity.setToUserName(fromUserName);
        entity.setFromUserName(toUserName);
        entity.setCreatetime(BaseUtil.getBaseUtil().getIntegerTime());
        entity.setMsgType("text");
        entity.setContent("短视频消息暂不支持");

        return XmlUtil.getXmlUtil().ReturnMsg(entity);
    }
}
